/*
 * MODULE  NAME  :
 * PROGRAM NAME  : coremanager.h
 * AUTHOR        : 
 * CREATE  DATE  : 2015-03-13 16:23:35
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_COREMANAGER_H_
#define _H_COREMANAGER_H_
#include "inc.h"
#include "workermanager.h"
#include "worker.h"

/* 发送信号的命令 */
#define COREMANAGER_CMD_EXIT		1
#define COREMANAGER_CMD_SHOWSTATUS	2
#define COREMANAGER_CMD_RECONFIG	3
#define	COREMANAGER_CMD_QUICKEXIT	4
#define COREMANAGER_CMD_RESTART		5

struct Env {
	void *ptrTaskEnvShm;
	int shmid;

	int tasknum;
	int factinitedtasknum;
	int maxtasknum;
	
	char configfile[101];
	
	int cmd;
};
struct TaskEnv *GetTaskEnvByPid(pid_t pid);

#endif
